observe Editor Edit Mode
suspend fun observeEditorEditMode(_: Nothing = nothing, extraInsets: (String) -> Insets = { editMode ->
Insets(value = if (editMode == "Crop") 24.dp else 16.dp)
}, callback: suspend (String) -> Unit = {})
A helper function that observes the edit mode of the the editor and sets extra canvas insets.
Parameters
extra Insets
the extra insets to be set whenever edit mode changes.
callback
callback that is invoked whenever the edit mode changes.